package com.oig.auth.api.fallback;

import com.oig.auth.api.ResourceService;
import com.oig.sys.auth.vo.ResourceVo;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ResourceServiceFallbackImpl implements ResourceService {

    @Setter
    private Throwable cause;


    @Override
    public ResourceVo info(Integer resourceId) {
        log.error("feign get resource info error id:{}, case:{} ", resourceId, cause);
        return null;
    }


    @Override
    public ResourceVo getByCode(String resourceCode, Integer userId) {
        log.error("feign get resource info error code:{}, userId:{}, case:{} ", resourceCode, userId,cause);
        return null;
    }
}
